import { createRouter, createWebHistory ,createWebHashHistory} from 'vue-router'
import PayView from '../views/Pay.vue'

const router = createRouter({
  history:import.meta.env.DEV ? createWebHashHistory() : createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'pay',
      component: PayView
    },
    {
      path: '/paying',
      name: 'paying',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Paying.vue')
    }
  ]
})

export default router
